package com.ccprint.Print;

import com.ccprint.MyBox.MyBox;
import com.ccprint.MyPaperInterface.MyParer;

/**
 * @author cc
 * @date 2021/8/10 20:19
 * @Description
 */

public class Printmachine {
    private double price;
    private String brand;

    //纸张接口
    private MyParer paper;
    //墨水接口
    private MyBox ibox;

    public void print(){
        System.out.println("打印机开始工作...");
        System.out.println("打印机价格是:"+price);
        System.out.println("打印机品牌是:"+brand);
        System.out.println("打印机纸张:"+paper.showPaper());
        System.out.println("打印机的墨水:"+ibox.showBox());
    }

    public Printmachine() {
    }

    public Printmachine(double price, String brand, MyParer paper, MyBox ibox) {
        this.price = price;
        this.brand = brand;
        this.paper = paper;
        this.ibox = ibox;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public MyParer getPaper() {
        return paper;
    }

    public void setPaper(MyParer paper) {
        this.paper = paper;
    }

    public MyBox getIbox() {
        return ibox;
    }

    public void setIbox(MyBox ibox) {
        this.ibox = ibox;
    }
}
